package com.lelouch.wetlandcommon.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * 用户信息对象
 *
 */
@Document(collection = "UserEntity")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private String id;

    @Field("usin_no")
    private Long no; //用户编码
    @Field("usin_userName")
    private String userName;//用户名
    @Field("usin_passWord")
    private String passWord;//密码
    @Field("usin_email")
    private String email;//email
    @Field("usin_mob")
    private String mob;//手机号
    @Field("usin_groupId")
    private String groupId;//权限组
    @Field("usin_weChat")
    private String weChat;//微信
    @Field("usin_remarks")
    private String remarks;//备注
    @Field("usin_userPhoto")
    private String userPhoto;//照片
    @Field("usin_register")
    private Long register;//注册时间
    @Field("usin_status")
    private Integer status;//用户状态0-正常,1-禁用
}
